package com.lv.service.bean

import android.os.Parcelable
import androidx.annotation.Keep
import com.chad.library.adapter.base.entity.SectionEntity
import com.github.gzuliyujiang.wheelview.contract.TextProvider
import kotlinx.android.parcel.Parcelize

@Parcelize
@Keep
data class TelSecondCategory(
    val fcaid: Int,
    val id: String,
    var image: String,
    val name: String,
    val secaid: Int,
    val seq: Int,
    var telThirdCategories: List<TelThirdCategory>?,
    var isSelcted: Boolean = false,
    var isItemHeader: Boolean = false,

    ) : Parcelable, TextProvider, SectionEntity {
    override fun provideText(): String {
        return name
    }

    override val isHeader: Boolean
        get() = isItemHeader
}

@Parcelize
@Keep
data class TelThirdCategory(
    val id: String,
    var fcaid: String,
    var image: String,
    val name: String,
    var postion: Int,//记录当前是第几个二级分类下的
    var postionSalf: Int,//记录当前是二级分类下第几个的
    var isItemHeader: Boolean = false,
    var isSelcted: Boolean = false,
//    var isHead: Boolean = false,
) : Parcelable, TextProvider, SectionEntity {
    override fun provideText(): String {
        return name
    }

    override val isHeader: Boolean
        get() = isItemHeader
}